import { request } from "../utils/request";

//气象历史逐日数据
export const fetchHistoryPage = (data) =>{
  return request.post('/api/weather/listPage',data)
}

//更新
export const updateHistory = (data) =>{
  return request.post('/api/weather/update',data)
}

//删除
export const deleteHistory = (id) =>{
  return request.post(`/api/weather/delete/${id}`,id)
}

//批量增加
export const uploadHistory = (data) => {
  return request.post('/api/weather/saveBatch', data)
}
